import { requestType } from '~/config/enum.config';

const SERVICE = 'domain-service';
const CONTROLLER = 'caseApplyRecordController';

export default {
  /**
   * 获取所有审核记录
   */
  getAllCaseApplyRecords: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'getAllCaseApplyRecords',
    type: requestType.Get,
  },
  /**
   * 协催申请
   */
  applyCaseAssist: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'applyCaseAssist',
    type: requestType.Post,
  },
  /**
   * 留案申请
   */
  applyLeaveCase: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'applyLeaveCase',
    type: requestType.Post,
  },
  /**
   * 抢案共享
   */
  applyRobCaseShare: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'applyRobCaseShare',
    type: requestType.Post,
  },

  applyRobCase: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'applyRobCase',
    type: requestType.Post
  },
  /**
   * 减免
   */
  applyDerate: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'applyDerate',
    type: requestType.Post,
  },
  /**
   * 留案申请
   */
  dealApply: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'dealApply',
    type: requestType.Post,
  },
  /**
   * 协催留案申请
   */
  applyAssistLeaveCase: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'applyAssistLeaveCase',
    type: requestType.Post,
  },

  /**
   * 审批记录
   */
  recordHistory: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'recordHistory',
    type: requestType.Get,
  },

  /**
   * 停催申请
   */
  applyPauseCase: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'applyPauseCase',
    type: requestType.Post,
  },
  /**
   * 委外回收-申请流转申请
   */
  applyCirculationCase: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'applyCirculationCase',
    type: requestType.Post,
  },

  /**
   * 提前流转申请
   */
  applyTurnCase: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'applyTurnCase',
    type: requestType.Post,
  },

  /**
   * 人工划扣
   */
  applyRepay: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'applyRepay',
    type: requestType.Post,
  },

  /**
   * 停催激活
   */
  applyPauseCaseActive: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'applyPauseCaseActive',
    type: requestType.Post,
  },
  /**
   * 检查审批流
   */
  checkApplyCategory: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'checkApplyCategory',
    type: requestType.Post
  },
  /**
   * 检查审批流
   */
  revertVisitAssist: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'revertVisitAssist',
    type: requestType.Get
  },

  /**
   * 客户标签设置
   */
  settingPersonalLabel: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'settingPersonalLabel',
    type: requestType.Post,
  },
  /**
   * 新增修改删除策略
   */
  approvalStrategyConfig: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'approvalStrategyConfig',
    type: requestType.Get,
  },
  /**
   * 展期申请
   */
  applyLoanExtension: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'applyLoanExtension',
    type: requestType.Post,
  },
  /**
   * 通过applyID获取策略详情
   */
  getOneById: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'getOneById',
    type: requestType.Get,
  },
  /**
   * 坏账确认
   */
  applyVerification: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'applyVerification',
    type: requestType.Post,
  },
  /**
   * 重新提交
   */
  getVerApplyRecord: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'getVerApplyRecord',
    type: requestType.Get,
  },
  /**
   * 撤销申请
   */
  approvalWithdraw: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'approvalWithdraw',
    type: requestType.Get,
  },
  /**
   * 我的审核-查看审批历史
   */
  getCaseApplyInfo: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'getCaseApplyInfo',
    type: requestType.Get,
  },
  /**
   * 核销案件查询-查看审批历史
   */
  getApplyTopInfo: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'getApplyTopInfo',
    type: requestType.Get,
  },
  /**
   * 催收执行页-申请历史撤回
   */
  approvalDerateWithdraw: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'approvalDerateWithdraw',
    type: requestType.Get,
  },
  /**
   * 统计坏账金额
   */
  getBadAmount: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'getBadAmount',
    type: requestType.Post,
  },
  /**
   * 统计案件金额
   */
  getTotalOverdueAmount: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'getTotalOverdueAmount',
    type: requestType.Post,
  },
  /**
   * 获取坏账金额合计
   */
  getTotalBadAmount: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'getTotalBadAmount',
    type: requestType.Post,
  },
};
